/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  Lin_PbCfg.c
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL Lin
 * @date 2025-03-25 19:03:22
 */

#ifdef __cplusplus
extern "C"{
#endif

#include "Lin_Types.h"
#include "Lin_Ip.h"

#define LIN_START_SEC_CONFIG_DATA_UNSPECIFIED
#include "Lin_MemMap.h"



/* UART configuration for different nodes */
static const Lin_Uart Lin_ChannelHwCfg[1] =
{
    {
        {
            .auto_br = FALSE,
            .baud_rate = (20000U),
            .frequency = (83250000),
            .txBreakLen = (13U),
            .mode = LIN_UART_MASTER,
            .cs_mode = LIN_UART_ENHANCED_CS,
            .stop = LIN_UART_STOP_1BIT,
            .parity = LIN_UART_PARITY_NONE,
            .cmd_timeout = 0U,
        },
        .linModuleBase = (APB_UART9_BASE),
        .coreId = 0x0U
    },
};

CONST(Lin_ConfigType, LIN_CONST) LinGlobalConfig =
{
    .numberOfNodes = 1U,
    .channels = Lin_ChannelHwCfg
};

#define LIN_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "Lin_MemMap.h"

#ifdef __cplusplus
}
#endif
